package com.chendk.service.impl;

import com.chendk.dao.TestTableDao;
import com.chendk.entity.TestTable;
import com.chendk.service.TestTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Capc on 2017/6/9.
 */
@Service
public class TestTableServiceImpl implements TestTableService {

    @Autowired
    private TestTableDao testTableDao;

    @Override
    public boolean addOne(TestTable tt) {
        if (tt == null) {
            return false;
        }
        int insertRows = testTableDao.addOne(tt);
        return insertRows == 1 ? true : false;
    }
}
